<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap 的 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../../static/css/main.css" th:href="@{/static/css/main.css}">
    <title>用户中心</title>
</head>
<body>
<nav class="nav nav-pills nav-justified">
    <a class="nav-link " th:href="@{/book/randBook}">首页</a>
    <a class="nav-link" th:href="@{/book/bookBrother}">分类与购买</a>
    <a class="nav-link " th:href="@{/admin/userCenter}">个人中心</a>
    <a class="nav-link" th:href="@{/shop/selectAllShop}">购物车</a>
    <a class="nav-link active" th:href="@{/order/selectOrderLastAll}" >查询订单</a>
</nav>

<br>
<br>

<div class="row-10">
    <div id="tab" th:fragment="tab">
        <table class="table">
            <thead>
            <tr>
                <th scope="col">书名</th>
                <th scope="col">购买人</th>
                <th scope="col">联系方式</th>
                <th scope="col">花费价格</th>
                <th scope="col">购买数量</th>
                <th scope="col">收货地址</th>
                <th scope="col">购买时间</th>
            </tr>
            </thead>
            <tbody id="tbody">
            <tr th:each="orderDto:${orderDtos}">
                <td th:text="${orderDto.bookName}">《平凡世界》</td>
                <td th:text="${orderDto.name}">神秘人</td>
                <td th:text="${orderDto.phone}">17762822421</td>
                <td th:text="${orderDto.payMoney}">123</td>
                <td th:text="${orderDto.count}">7本</td>
                <td th:text="${orderDto.address}">地球北极101</td>
                <td th:text="${orderDto.createTime}">2010-10-10</td>
                <td>
                    <!--模态窗口-->
                    <div id="myMo" class="modal" tabindex="-1">
                        <div class="container">
                            <div class="modal-content">
                                <div class="modal-body">
                                    购买数量：<input type="text" id="count" name="count"><br>
                                    <button onclick="rush()" type="submit">提交</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

















<!-- JavaScript 文件是可选的。从以下两种建议中选择一个即可！ -->
<!-- 选项 1：jQuery 和 Bootstrap 集成包（集成了 Popper） -->

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>